const isDevelopment = process.env.NODE_ENV === 'development'

export function assert(isSuccess, message) {
  if (isDevelopment && !isSuccess) {
    throw new Error('[wjc-easy-element-ui] ' + message)
  }
}